package com.ruoyi.web.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.web.entity.ReportSummeryEntity;
import com.ruoyi.web.service.ReportSummerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ：wang.j.f
 * @description：TODO
 * @date ：Created in 2021/8/27 18:04
 * @modified By：
 * @version: 1.0$
 */
@RestController
@RequestMapping("/reportSummery")
public class SummeryController extends BaseController {

    @Autowired
    private ReportSummerService reportSummerService;

    @GetMapping("/getList")
    @PreAuthorize("@ss.hasPermi('summery:getList')")
    public TableDataInfo list(ReportSummeryEntity entity) {
        startPage();
        List<ReportSummeryEntity> reportSummeryEntities = reportSummerService.selectBySelective(entity);
        return getDataTable(reportSummeryEntities);
    }

}
